package com.wanhe.base.net;


import com.wanhe.base.model.entity.DishesTypeDetailEntity;
import com.wanhe.base.model.entity.CallRing;
import com.wanhe.base.model.entity.LoginEntity;
import com.wanhe.base.model.entity.MenuDesignEntity;
import com.wanhe.base.model.entity.SellOutResultEntity;
import com.wanhe.base.model.entity.TableBillEntity;
import com.wanhe.base.model.entity.TableResultEntity;
import com.wanhe.base.model.entity.VersionEntity;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by Administrator on 2017/3/14.
 */

public interface ServerApiImp {
    @POST("/GetData")
    Observable<LoginEntity> login(@Body Map<String, Object> body);

    @POST("/GetData")
    Observable<DishesTypeDetailEntity> getAll(@Body Map<String, Object> body);

    @POST("/GetData")
    Observable<MenuDesignEntity> getMenuDesign(@Body Map<String, Object> body);

//    @POST("/GetData")
//    Observable<SellOutResultEntity> getSallOutData(@Body Map<String, Object> body);

    @POST("/GetData")
    Observable<TableResultEntity> getTables(@Body Map<String, Object> body);

    @POST("/GetData")
    Observable<SellOutResultEntity> batchOrder(@Body Map<String, Object> body);

    @POST("/GetData")
    Observable<CallRing> callRing(@Body Map<String, Object> body);

    @POST("/GetData")
    Observable<TableBillEntity> getTableBill(@Body Map<String, Object> body);

    @POST("/GetData")
    Observable<VersionEntity> getVersion(@Body Map<String, Object> body);
}
